<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j">
	<ui:composition>
		<div id="mini-nav">
			<div>
				<a target="_blank" href="#">XXX 欢迎来到YYY网站</a>
				<h:form id="topForm" prependId="false">
					    <c:choose>
							<c:when test="${topForm.login}">
							    <label><h:outputText value="#{msg.wellcome}"  /><h:outputText value="#{topForm.username}"/></label>
							    <span>·</span>
							    <h:commandLink value="#{msg.logoutLnk}" action="#{topForm.logoutAction}"/>
							    <span>·</span>
							    <h:commandLink value="#{msg.userListLnk}" action="#{topForm.goUserList}"/>
							    <span>·</span>
							    <h:commandLink value="#{msg.userEditLnk}" action="#{userRegisteForm.edit}"/>
							</c:when>
							<c:otherwise >
				                <h:commandLink value="#{msg.loginLnk}" action="#{topForm.goLogin}"/>
				                <span>·</span>
				                <h:commandLink value="#{msg.registeLnk}" action="#{topForm.goRegiste}"/>
				            </c:otherwise> 
						</c:choose> 
					
			      </h:form>
			  </div>
		</div>
	</ui:composition>
</html>